export let count = 0

export function increase() {
    count++
    return count
}
// 深拷贝
export function deepClone(oldData) {
    console.log('shenkaobei',oldData)
    if (typeof oldData === 'object' && oldData !== null) {
        let res = Array.isArray(oldData) ? [] : {}
        console.log('res===',res)
        for (const resKey in oldData) {
            if (oldData.hasOwnProperty(resKey)) {
                res[resKey] = deepClone(oldData[resKey])
            }
        }
        return res
    } else {
        return oldData
    }
}
// 递归遍历dom树
export function showDom(oldData) {

}
